From: Keir Fraser Date: Sat, 15 May 2010 08:16:47 +0000 (+0100) Subject: credit2: Avoid use of cpu_possible_map X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~12146 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/%22bookmarks://%22Dat/%22http:/www.example.com/cgi/%22https:/%22bookmarks:/%22Dat?a=commitdiff_plain;h=de25cf26072681574d67bfe3ee02c4c3e72474cd;p=xen.git credit2: Avoid use of cpu_possible_map Signed-off-by: Keir Fraser --- diff --git a/xen/common/sched_credit2.c b/xen/common/sched_credit2.c index 14cea94e9d..3baf7147e5 100644 --- a/xen/common/sched_credit2.c +++ b/xen/common/sched_credit2.c @@ -1127,19 +1127,10 @@ csched_alloc_pdata(const struct scheduler *ops, int cpu) static void make_runq_map(struct csched_private *prv) { - int cpu, cpu_count=0; - /* FIXME: Read pcpu layout and do this properly */ - for_each_possible_cpu( cpu ) - { - prv->runq_map[cpu] = 0; - cpu_count++; - } prv->runq_count = 1; - - /* Move to the init code...? */ prv->rqd[0].cpu_min = 0; - prv->rqd[0].cpu_max = cpu_count; + prv->rqd[0].cpu_max = NR_CPUS; } static int